package codename.primavera.web;

import java.io.Serializable;
import java.text.DateFormat;

import javax.faces.bean.ManagedBean;

/**
 * The Class TestBean.
 */
@ManagedBean(name = "testBean")
public class TestBean implements Serializable {

    /** The Constant serialVersionUID. */
    private static final long serialVersionUID = -8518324949232532750L;

    /** The text property *. */
    private String text;

    /**
     * Getter.
     *
     * @return the Text
     */
    public String getText() {
        return text;
    }

    /**
     * Setter.
     *
     * @param someText the Text
     */
    public void setText(final String someText) {
        this.text = someText;
    }

    /**
     * Say hello.
     *
     * @return the string
     */
    public String sayHello() {
        return "sayHello";
    }

    /**
     * Say hi.
     *
     * @param someParam the some param
     * @return the string
     */
    public String sayHi(final String someParam) {
        return "EL says hello, " + someParam;
    }

    /**
     * Gets the currrent time.
     *
     * @return the currrent time
     */
    public String getCurrrentTime() {
        return DateFormat.getDateTimeInstance().format(System.currentTimeMillis());
    }

}
